let p1 = new Promise((resolve,reject)=>{
  resolve('resolve-p1')
});
let p2 = Promise.reject('resolve-p2');
let p3 = Promise.resolve('resolve-p3');

const result = Promise.all([p1,p2,p3]);
console.log('result--',result)